package com.feri.sg.goods.controller;

import com.feri.sg.goods.domain.Category;
import com.feri.sg.goods.service.CategoryService;
import com.feri.sg.goods.service.SkuService;
import com.feri.sg.pojo.bo.BaseController;
import com.feri.sg.pojo.vo.R;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import javax.annotation.Resource;

/**
 *
 */
@RestController
@RequestMapping("/server/category/")
public class CategoryController
{
    @Resource
    private CategoryService service;
    @GetMapping("all")
    public R all(){
        return service.all();
    }
}
